package com.sunlands.zlcx.usercenter.client;

import com.sunlands.zlcx.usercenter.config.OauthFeignConfig;
import com.sunlands.zlcx.usercenter.vo.response.BusinessResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author anjl
 */
@SuppressWarnings("unused")
@FeignClient(value = "tz-user-diary", configuration = OauthFeignConfig.class)
public interface UserDiaryService {

    @ApiOperation(value = "根据用户id查询日记数量", notes = "根据用户id查询日记数量", position = 90)
    @GetMapping("/user/diary/count/by-user-id")
    BusinessResult<Long> countByUserId(@RequestParam(name = "userId") Long userId);
}

